<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%> 
<html>
<head>  
  <script type="text/javascript">
  function doSearch() {	 
	  grid.load({
			cnapsno: $('#cnapsno').val(),
			bank_nm: $('#bank_nm').val() ,
			bank_addr: $('#bank_addr').val() 			
		});
  }
  
  function addCnaps(url){	  
	  commonDetail(url,"save","cnapsTableId");
  }
  function modifyCnaps(url){	  
	  commonDetail(url,"update","cnapsTableId");
  }
  function deleteCnaps(url){	  
	  commonDel(url,"delete","cnapsTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#cnapsTableId").jpgrid({
			url: "getCnapsListJson.do",
			columns: [
				{title: "联行号", field: "CNAPSNO",width:150},
				{title: "银行名称", field: "BANK_NM",width:250},
				{title: "银行地址", field: "BANK_ADDR",width:250},
				{title: "总行行号", field: "SUPER_BANK_NO",width:100}
			]
		});	  
  });
  </script>
</head>
<body class="easyui-layout list_body"  >
	<form id="cnapsForm" name="cnapsForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >
			<!-- 查询表单 -->
			<div  class="datagrid-toolbar" border="false"  >
				<span>联行号:</span> 
				<input id="cnapsno" type="text" name="cnapsno" class="easyui-textbox">
				<span>银行名称:</span> 
				<input id="bank_nm" type="text" name="bank_nm" class="easyui-textbox">
				<span>银行地址:</span> 
				<input id="bank_addr" type="text" name="bank_addr" class="easyui-textbox"> 
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a> 
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>					
			</div>
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="cnapsTableId" fit="true"></table>
		</div>
	</form>
</body>
</html>
